package org.example.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.system.entity.SysUser;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author LiJunYi
 * @since 2020-05-25
 */
@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {

    /**
     * 获取通过用户名
     *
     * @param username 用户名
     * @return {@link SysUser}
     */
    SysUser getByUsername(@Param("username") String username);

    /**
     * 获取列表
     *
     * @return {@link List}<{@link SysUser}>
     */
    List<SysUser> getList();
}
